<?php


namespace app\admin\controller;

use app\admin\logic\Authority;

/**
 * Created by PhpStorm
 * USER zhangkai QQ 920062039
 * Date 2022/2/17   16:58
 */
class Auth extends ControllerBase
{
    /**
     * @OA\Get(
     *   tags={"权限"},
     *   path="/auth/getTree",
     *   summary="获取权限树",
     *   @OA\Response(
     *     @OA\MediaType( mediaType="application/json"),
     *     response=200,
     *     description="返回权限树"
     *   )
     * )
     */
    public function getTree(){
        return result()->data(Authority::getAuthority())->toJson();
    }
}